package main

import (
	core2 "basic/book/concurrency/base/channel/channelend/core"
	"fmt"
)

func main() {
	bookSearcher := core2.BookSearcher{SearchTime: 1}
	newspaperSearcher := core2.Newspaper{SearchTime: 5}
	emailSearcher := core2.Email{SearchTime: 3}
	searchers := []core2.Searcher{bookSearcher, newspaperSearcher, emailSearcher}
	data := core2.SearchData("A", searchers)
	for _, V := range data {
		fmt.Println(V)
	}
}
